package com.huabo.audit.oracle.entity;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.apache.ibatis.annotations.Result;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huabo.audit.config.IgnoreSwaggerParameter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@TableName("TBL_NBSJ_OPERATE")
@Data
@ApiModel("实体类")
@Accessors(chain = true)
public class TblNbsjOperateEntity {
	
	public static final Integer FINISH = 1;
	public static final Integer UNFINISH = 0;
	private static final long serialVersionUID = 1L;
	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")  
	@TableId(value = "OPERATEID", type= IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer operateid;

    @TableField(value = "finish")
    @ApiModelProperty(value="")
    private Integer finish;
    
    @TableField(value = "finishTime")
    @ApiModelProperty(value="")
    private Date finishtime;
    
    @TableField(value = "AUTHID")
    @ApiModelProperty(value="")
    private Integer authId;
    
    @TableField(value = "SHETTID")
    @ApiModelProperty(value="")
    private Integer sheetId;
    
    @ApiModelProperty(value="")
    @Transient
    private TblNbsjAuthorizationEntity authorization;
    
    @ApiModelProperty(value="")
    @Transient
    private TblNbsjSheetEntity nbsjSheet;
    
    @TableField(value = "businessType")
    @ApiModelProperty(value="", hidden = true)
    @Transient
    private String businessType;
    
    @TableField(value = "riskAttrbution")
    @ApiModelProperty(value="", hidden = true)
    @Transient
    private String riskAttrbution;
    
    @TableField(value = "suditProcess")
    @ApiModelProperty(value="", hidden = true)
    private String suditProcess;
   //@IgnoreSwaggerParameter
    
    @TableField(value = "programid")
    @ApiModelProperty(value="", hidden = true)
    @Transient
    private String programid;
    
    @TableField(value = "renyuan")
    @ApiModelProperty(value="", hidden = true)
    @Transient
    private String renyuan;
    
    @ApiModelProperty(value="", hidden = true)
    @Transient
    private String control;
    
    @ApiModelProperty(value="", hidden = true)
    @Transient
    private String riskPoint;
    
    @ApiModelProperty(value="", hidden = true)
    @Transient
    private String riskSource;
    
    
}
